package com.blue.user.controller;

import com.blue.user.service.Impl.LitCityServiceImpl;
import com.blue.user.service.LitCityService;
import com.litblue.starter.core.AjaxResult;
import com.litblue.starter.pojo.user.dto.GetCityDto;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user/city")
@AllArgsConstructor(onConstructor_ = @Autowired)
public class LitCityController {


    private final LitCityService litCityService;

    @ApiOperation("获取周边信息")
    @PostMapping("getCityInfo")
    public AjaxResult getCityInfo(@RequestBody GetCityDto getCityDto){
      return   litCityService.getCityInfo(getCityDto);
    }
}
